<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/23
 * Time: 16:20
 */

namespace Home\Request\record;


use Common\Common\Request;

class AddRecordRequest extends Request
{
    private $act_id;
    private $apply_id;
    private $user_id;
    private $time;
    private $nickname;
    private $headimgurl;

    public function setActId($act_id)
    {
        $this->act_id = $act_id;
    }

    public function getActId()
    {
        return $this->act_id;
    }

    public function setApplyId($apply_id)
    {
        $this->apply_id = $apply_id;
    }

    public function getApplyId()
    {
        return $this->apply_id;
    }

    public function setUserId($user_id)
    {
        $this->user_id = $user_id;
    }

    public function getUserId()
    {
        return $this->user_id;
    }

    public function setTime($time)
    {
        $this->time = $time;
    }

    public function getTime()
    {
        return $this->time;
    }

    public function issetActId()
    {
        return $this->is_set($this->act_id);
    }

    public function verifyActId()
    {
        return is_numeric($this->act_id);
    }

    public function IsActIdInRange()
    {
        return $this->act_id > 0;
    }

    public function issetApplyId()
    {
        return $this->is_set($this->apply_id);
    }

    public function verifyApplyId()
    {
        return is_numeric($this->apply_id);
    }

    public function IsApplyIdInRange()
    {
        return $this->apply_id > 0;
    }


    public function issetUserId()
    {
        return $this->is_set($this->user_id);
    }

    public function verifyUserId()
    {
        return is_numeric($this->user_id);
    }

    public function IsUserIdInRange()
    {
        return $this->user_id > 0;
    }

    public function issetTime()
    {
        return $this->is_set($this->time);
    }

    /*public function verifyTime()
    {
        return is_numeric($this->time);
    }*/

    public function IsTimeInRange()
    {
        return $this->time > 0;
    }

    public function setNickName($nickname)
    {
        $this->nickname = $nickname;
    }

    public function setHeadImgUrl($headimgurl)
    {
        $this->headimgurl = $headimgurl;
    }

    public function getNickName()
    {
        return $this->nickname;
    }

    public function getHeadImgUrl()
    {
        return $this->headimgurl;
    }
}